//开源依赖
import Vue from 'vue'
import router from './router';
import App from './App'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//自定义js
import  './utils/config'
import './utils/common' //全局方法
import {message} from './utils/resetMessage'//提示语
import './utils/http';         //请求
import * as filters from "./utils/filters";  //过滤器
import  './utils/importComponents'  //自定义组件

import api from "./api/index.js";
import { store } from './store/index'



Vue.config.productionTip = false
// 注册全局实用程序过滤器
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key]);
});
Vue.use(ElementUI);
Vue.prototype.$message = message;
Vue.prototype.$api = api;



/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
  beforeCreate() {
    Vue.prototype.$bus = this //安装全局事件总线
  },
})
